package com.suoluo.zenadmin.vo.country;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import org.springframework.web.multipart.MultipartFile;

import com.suoluo.zenadmin.vo.dest.DestVO;

public class CountryVO {

	/**
	 * 国家Id
	 */
	private int countryId;
	/**
	 * 国家名称
	 */
	private String countryName;
	/**
	 * 归属洲Id
	 */
	private int continentId;
	/**
	 * 国家显示顺序
	 */
	private Date countrySort;
	
	/**
	 * 国家的中文名称
	 */
	private String countryNameZh;
	
	/**
	 * 国家的英文名称
	 */
	private String countryNameEn;
	
	/**
	 * 国旗升级到oss服务器的路径
	 */
	private String countryOrigFlag;
	
	private List<DestVO> dests;
	/**
	 * 国旗
	 */
	private MultipartFile flagFile;
	/**
	 * 修改国旗时，临时存储国旗的url
	 */
	private String countryFlagOld;
	public void addDest(DestVO dest){
		if (dests == null){
			dests = new ArrayList<DestVO>();
		}
		dests.add(dest);
	}
	
	public List<DestVO> getDests() {
		return dests;
	}


	public void setDests(List<DestVO> dests) {
		this.dests = dests;
	}


	public int getCountryId() {
		return countryId;
	}
	public void setCountryId(int countryId) {
		this.countryId = countryId;
	}
	public String getCountryName() {
		return countryName;
	}
	public void setCountryName(String countryName) {
		this.countryName = countryName;
	}
	public int getContinentId() {
		return continentId;
	}
	public void setContinentId(int continentId) {
		this.continentId = continentId;
	}
	
	public Date getCountrySort() {
		return countrySort;
	}
	public void setCountrySort(Date countrySort) {
		this.countrySort = countrySort;
	}
	public String getCountryNameZh() {
		return countryNameZh;
	}
	public void setCountryNameZh(String countryNameZh) {
		this.countryNameZh = countryNameZh;
	}
	public String getCountryNameEn() {
		return countryNameEn;
	}
	public void setCountryNameEn(String countryNameEn) {
		this.countryNameEn = countryNameEn;
	}

	public String getCountryOrigFlag() {
		return countryOrigFlag;
	}

	public void setCountryOrigFlag(String countryOrigFlag) {
		this.countryOrigFlag = countryOrigFlag;
	}


	public MultipartFile getFlagFile() {
		return flagFile;
	}
	public void setFlagFile(MultipartFile flagFile) {
		this.flagFile = flagFile;
	}
	public String getCountryFlagOld() {
		return countryFlagOld;
	}
	public void setCountryFlagOld(String countryFlagOld) {
		this.countryFlagOld = countryFlagOld;
	}
	
}
